<?php 
if(count($wasterstocks)){ 
foreach ($wasterstocks as $sku=>$wasterstock): ?>
           <tr>
           		  <td><?php echo $sku;?></td>
                  <td><?php echo isset($wasterstock['sku_name'])?$wasterstock['sku_name']:'';?></td>
                  <td><?php echo isset($wasterstock['inquantity'])?$wasterstock['inquantity']:'';?></td>
                  <td><?php echo $wasterstock['outquantity'];?></td>
                  <td><?php echo $wasterstock['nowquantity'];?></td>
           </tr>
<?php endforeach;}?>
<tr  class="remove" >
      <td colspan="8">
      	<div class="mypage">
      		<div style="text-align: center;">查询结果总计:<span class="num"><?php echo $totles?></span>条</div>
     	</div>
     </td>
</tr>